﻿using System.IO;
using WikiDoc.Formatter;

namespace WikiDoc.Parser
{
    /// <summary>
    /// 
    /// </summary>
    public interface IParser
    {
        /// <summary>
        /// Gets the name of the parser, the name must be lower chars.
        /// </summary>
        /// <value>The name.</value>
        string Name { get; }

        /// <summary>
        /// Processes the specified parser.
        /// </summary>
        /// <param name="argv">The argv.</param>
        /// <param name="reader">The reader.</param>
        /// <param name="formatter">The formatter.</param>
        void Process(string argv, TextReader reader, IFormatter formatter);
    }
}
